    .text
    .org 0


#define DEF(n,a) \
    .globl n; n = a

#define NSTUB(name, addr)\
    .globl name ;\
    .weak name ;\
    name: ;\
	ldr  pc, = addr

#define NHSTUB(name, addr)\
    .globl name ;\
    name: ;\
	ldr  pc, = addr

#define STUB(addr)\
    .globl sub_ ## addr ; sub_ ## addr = 0x ## addr

// vars

DEF(addr_0x1900,0x1900)
DEF(cache_0xFFB602F0,0xFFB602F0)
DEF(bss_begin,0x00DFB0)
DEF(bss_end,0x02A550)
DEF(sysStartType,0x028F60)
DEF(readyQHead        ,0x028DE0)
DEF(qPriBMapClassId   ,0x00D840)
DEF(readyQBMap        ,0x0298A0)
DEF(activeQHead       ,0x00D6E8)
DEF(qFifoClassId      ,0x00D880)
DEF(tickQHead         ,0x025A20)
DEF(qPriListClassId   ,0x00D7C4)
DEF(proc_sysMmuLibInit ,0x00DE5C)
DEF(MemDescArray       ,0x001918)
DEF(MemDescArrayCount  ,0x00197C)
DEF(fdConsole          ,0x00199C)
DEF(hResourceName,0x00CFD4)

DEF(OlcInfoData,0x0179E8)
DEF(OlcInfoChangedFlags,0x017AA8)
DEF(OlcInfoFlags,0x027E48)
DEF(hOlcInfoSem,0x017B0C)
DEF(hOlcInfoMessQueue,0x017B08)
DEF(OlcInfoEmptyStr,0xFF9408A8)
DEF(proc_OlcTftNotifyChange,0x005580)
DEF(OlcNotifyFreeze,0x005584)
DEF(OlcNotifyChangeInProgress,0x005594)
DEF(OlcCounterFlag1,0x005588)
DEF(OlcCounterFlag2,0x00558C)
DEF(OlcCounterFlag3,0x005590)

DEF(aCf_extend_iso,0xFF93C198)


NSTUB(unknown_cache_, 0xFF8100D0)

NSTUB(cacheEnable_, 0xFFB520D4)

STUB(FFB45DF4)

NSTUB(getErrorNumber, 0xFFB50E1C)
STUB(FFB50C90)
NSTUB(uai_FFB11D7C, 0xFFB11D7C)
NSTUB(uai_FFB0FF74, 0xFFB0FF74)
NSTUB(uai_FFB2E108,0xFFB2E108)
NSTUB(write_multitaskAssert, 0xFFB1D14C)
NSTUB(RegProc_ExportAsEvent, 0xFFB06408)
NSTUB(RegProc_Shutdown, 0xFFB1C7C8)
NSTUB(install3VMemory, 0xFFB2EAA4)
NSTUB(romMenagerInit, 0xFFB29450)
STUB(FFB23DC8)
NSTUB(RegProc_PropertyService, 0xFFB23FD4)
NSTUB(RegProc_ErrorList, 0xFFB06188)
NSTUB(RegProc_FatalErrors, 0xFFB05824)
STUB(FFB09D5C)
NSTUB(RegProc_BlockUntilAfterTimeout, 0xFFB1D7A4)
STUB(FFB07740)
NSTUB(RegName_ResourceName, 0xFFB1A5CC)
NSTUB(memorySuite, 0xFFB15524)

STUB(FFB2BD6C)
NSTUB(serialIO_sub_FFB2BB14, 0xFFB2BB14)
STUB(FFAF84E4)
NSTUB(AdjustDefect, 0xFF9FDAF0)
NSTUB(CameraAdjustments, 0xFFA01970)
NSTUB(writeproc_to_D184_D188, 0xFFB2E63C)

NSTUB(AfeGain_CmosParam, 0xFFAFA1C4)
NSTUB(EngInit, 0xFFA35E50)
STUB(FFA2EA1C)
NSTUB(RegisterCapISR, 0xFFAFB9EC)
NSTUB(taskcreate_FaceSensor, 0xFFAFEA28)
NSTUB(REMInit, 0xFFAFBDA4)
NSTUB(taskcreate_ActSweep, 0xFFB00D10)
NSTUB(LCDInit, 0xFFAFD7C8)
STUB(FFAFD2DC)
NSTUB(DisplayInit, 0xFFA05DF8)
NSTUB(InitPowerSaveFunc, 0xFFA05A68)
STUB(FFA03B0C)
STUB(FFA05114)
NSTUB(PlayInit, 0xFFA0CF48)
NSTUB(LensTableInit, 0xFF95ACAC)
NSTUB(LensPoTableInit, 0xFF95DE1C)
NSTUB(CaptureInit_, 0xFF9FD864)
NSTUB(RegProc_Bathtub_Saturate, 0xFFA015D4)
STUB(FFA40390)
NSTUB(memset_193C8, 0xFF9FED88)
NSTUB(ColorAdjustments, 0xFFA11BCC)
STUB(FFA44A28)
NSTUB(taskcreate_DigProp, 0xFF93B460)
NSTUB(taskcreate_ShootMain, 0xFF8114B8)
NSTUB(taskcreate_OlcInfo, 0xFF94147C)
NSTUB(SomeISRprocs, 0xFFAF9FC8)
NSTUB(taskcreate_MainCtrl, 0xFF81BC64)
STUB(FFA024AC)


NSTUB(DarkPassInit, 0xFFA4262C)
STUB(FFA43068)
NSTUB(BathTubInit, 0xFF9FFA6C)
NSTUB(PREPRO_sub_FFA38AA8, 0xFFA38AA8)
STUB(FFA453D8)
NSTUB(PREPRO_sub_FFA39480, 0xFFA39480)
NSTUB(WBDetectionInit,0xFFA02BCC)

NSTUB(PREPRO_sub_FFA44254, 0xFFA44254)
NSTUB(DefsEvents, 0xFFA03034)
NSTUB(PREPRO_sub_FFA4597C, 0xFFA4597C)
NSTUB(PREPRO_sub_FFA45EDC, 0xFFA45EDC)
NSTUB(VShadingEvent, 0xFFA036B8)
NSTUB(PREPRO_sub_FFA466D4, 0xFFA466D4)

NSTUB(PREPRO_sub_FFA3BD60, 0xFFA3BD60)
NSTUB(PREPRO_sub_FFA3D6D8, 0xFFA3D6D8)
NSTUB(PREPRO_sub_FFA3EEA8, 0xFFA3EEA8)
NSTUB(RESAMPLE_sub_FFA3C944, 0xFFA3C944)
STUB(FFA3E210)
STUB(FFA3F9DC)
STUB(FFA3A7D0)
STUB(FFA3B19C)
STUB(FFA37E3C)
STUB(FFA39F7C)
STUB(FFA3847C)
STUB(FFA2F1FC)
STUB(FFA30FD8)
STUB(FFA32268)
STUB(FFA32954)
STUB(FFA331BC)
STUB(FFA35354)
STUB(FFA31A24)
STUB(FFA369EC)
NSTUB(RGBInit, 0xFFA18CAC)

NSTUB(DebugMenager, 0xFFB1E838)
NSTUB(DbgMgr_sub_FFB1EB28, 0xFFB1EB28)
NSTUB(RegProc_DbgMgr, 0xFFB1F23C)
NSTUB(IInit, 0xFFB2F97C)
NSTUB(LangInit_, 0xFF883008)
NSTUB(LangInit, 0xFF918AF4)
NSTUB(ctrlMan_sub_FF9136D4, 0xFF9136D4)
NSTUB(ctrlSrv_sub_FF914388, 0xFF914388)
STUB(FF9182CC)
STUB(FF926E40)
STUB(FF917824)
STUB(FF91772C)


NSTUB(PlayInit2, 0xFF82E740)
NSTUB(ColorBarInit, 0xFF86CD50)
NSTUB(LCDAdjustInit, 0xFF86CA50)
STUB(FFB29348)


NSTUB(RegProc_BootDisk, 0xFF8111F8)


NSTUB(registerResource, 0xFFB14854)
NSTUB(registerResource_env, 0xFFA76330)
NSTUB(USB1, 0xFFA7D594)
NSTUB(USB2, 0xFFA7BD9C)
STUB(FFA7BE14)
STUB(FFA7D778)
STUB(FFA8590C)
STUB(FFA5E0F4)
STUB(FFA76A30)
STUB(FFA6642C)




STUB(FF9DE698)
STUB(FFA70DE8)

STUB(FFA5D8A0)

STUB(FF9D74F8)
STUB(FF9D9AD0)
NSTUB(RAPIInit, 0xFFA70E20)

STUB(FF95EC54)
STUB(FF978AD0)
STUB(FF9EB94C)
NSTUB(USB3, 0xFFA76510)


NSTUB(FactoryModeRegisterPro, 0xFF94949C)
NSTUB(DPInit, 0xFF964420)

STUB(FF98CF4C)
NSTUB(EdLedRegisterProcedures, 0xFFAFCAF0)

STUB(FF82B2FC)

NSTUB(MonInit, 0xFF946EA0)


DEF(aUSBROOTDEVICEHANDLE, 0xFF810F80)
DEF(aU2VBUS, 0xFF810F80)
DEF(aUsbc20VbusSupp, 0xFF810F88)
DEF(aDEVICESPEED, 0xFF810F9C)








DEF(aStartup, 0xFF810F60)

//
STUB(FFB5F728)
STUB(FFB0FF74)
STUB(FFB2E108)
STUB(FFAFE5BC)
STUB(FFB07740)
STUB(FFB2BD6C)
STUB(FFA03B0C)
STUB(FFA05114)
STUB(FFA24838)
STUB(FFA35354)
STUB(FF926E40)
STUB(FFB29348)
STUB(FFA5D8A0)
STUB(FF95EC54)
STUB(FF9EB94C)
STUB(FF98CF4C)



// procs
#include  "funclist.S"
.align 2
fin:
